package Test3;

public class Test {
    public static void main(String[] args) {
        Printer printer = new LaserPrinter();
        printer.print();
        printer = new InkjetPringter();
        printer.print();
        printer = new DotMatrixPrinter();
        printer.print();
    }
}

